<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>

  <!-- url: http://www.baidu.com/s?sex=male -->
  
  <!--
      在类型为radio的input中, 如果name一样, 那么两个radio就会互斥
      name属性很重要, 因为表单提交的时候, 浏览器会把name相同的input的value打包到一起发送到服务器
  -->
  <form action="/abc">
    <label for="male">
      <input id="male" type="radio" name="sex" value="male">男
    </label>
    <label for="female">
      <input id="female" type="radio" name="sex" value="female">女
    </label>

    <button type="submit">提交按钮</button>
  </form>

</body>
</html>